package com.young.design.pattern.factory.factorymethod;

import com.young.design.pattern.factory.Shape;
import com.young.design.pattern.factory.TriangleShapeImpl;

/**
 * 抽象工厂的具体实现工厂，可以根据不同的种类来实现不同的工厂
 */
public class TriangleShapeFactory implements FactoryMethod {
    @Override
    public Shape createShape() {
        return new TriangleShapeImpl();
    }
}
